// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import Vuex from 'vuex'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import '../node_modules/jquery/dist/jquery'

import 'element-ui/lib/theme-chalk/index.css'
import './assets/fonts/iconfont.css'
import './assets/css/common.css'
import './assets/css/coverelementUI.less'
import tagsView from './store/modules/tagsView'
import Moment from 'moment'
import unlogin from '../static/js/unlogin'
import Echarts from 'echarts'
import axios from 'axios'


// Vue.prototype.url = '/ntdhrec'
// Vue.prototype.url = '/yuqz'
// Vue.prototype.url = '/dbx'
Vue.prototype.url = '/apis'
// Vue.prototype.url = '/zw'
// Vue.prototype.url = '/shily'
// Vue.prototype.url = '/apis1'
//Vue.prototype.url = '/wangww'
//Vue.prototype.url = '/zhup'
//Vue.prototype.url = '/zhangl'


//Vue.prototype.fileurl = 'http://192.168.177.21:8012/onlinePreview?url='

Vue.prototype.$echarts = Echarts

Vue.use(ElementUI)

Vue.use(Vuex)

Vue.config.productionTip = false

Vue.prototype.$bus = new Vue()

Vue.prototype.unlogin = unlogin

Vue.filter('converTime', function (data, formatStr) {
  if (!data) {
    return
  }
  return Moment(data).format(formatStr)
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  tagsView,
  components: {App},
  template: '<App/>'
})
